package com.demo.demo.controller;

import com.com.base.bean.ResultMessage;
import com.com.base.util.ResultMessageUtil;
import com.demo.demo.service.GxService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/gx")
@RestController
public class GxController {

    @Autowired
    private GxService gxService;

    @RequestMapping("/find_plancode")
    public ResultMessage findByPlanCode(@RequestParam String plan_code) {
        return ResultMessageUtil.success("", gxService.findByPlanCode(plan_code));
    }
}
